package com.ymk.service;

import org.quartz.SchedulerException;

/**
 *@Author: CJ
 *@Date: 2021-11-2 14:20
 */
public interface QuartzService {

    /**
     * 新增任务
     */
    void addJob(String jName, String jGroup, String tName, String tGroup, String cron) throws SchedulerException;

    /**
     * 暂定任务
     */
    void pauseJob(String jName, String jGroupe) throws SchedulerException;

    /**
     * 恢复任务
     */
    void resumeJob(String jName, String jGroup) throws SchedulerException;

    /**
     * 重新安排任务
     */
    void rescheduleJob(String jName, String jGroup, String cron) throws SchedulerException;

    /**
     * 删除任务
     */
    void deleteJob(String jName, String jGroup) throws SchedulerException;

    /**
     * 立即执行一次
     */
    void immediateExecutionJob(String jobName,String jobGroup) throws SchedulerException;
}
